package com.topNews.base.exception;

public class ServiceException extends RuntimeException {

	private static final long serialVersionUID = -8649452455777544763L;
	
	private String faultCode;
	
	private String faultDetail;
	
	public ServiceException(String faultCode, String faultDetail) {
		this(faultCode, faultDetail, null);
	}

	public ServiceException(String faultCode, String faultDetail, String faultString) {
		super(faultString);
		this.faultCode = faultCode;
		this.faultDetail = faultDetail;
	}

	public String getFaultCode() {
		return faultCode;
	}
	
	public String getFaultDetail() {
		return faultDetail;
	}
	
	public String getFaultString() {
		return getMessage();
	}
}
